<?php
if (! defined ( 'BASEPATH' ))
	exit ( 'No direct script access allowed' );

$route ['default_controller'] = "home";
$route ['404_override'] = '';
//============================Home Route==========================================//
$route ['article/(:any)'] = 'home/article/$1';
$route ['region/(:any)'] = 'home/region/$1';
$route ['channel/(:any)'] = 'home/channel/$1';

//============================Admin Routes==========================================//

$route ['admin/(login|logout|index)'] = 'admin/admin/$1';
$route ['admin/catalog/create_product'] = 'admin/products/create';
$route ['admin/catalog/products'] = 'admin/products/index';

$route ['admin/catalog/create_region'] = 'admin/regions/create';
$route ['admin/catalog/edit_region/(:any)'] = 'admin/regions/edit/$1';
$route ['admin/catalog/delete_region/(:any)'] = 'admin/regions/delete/$1';
$route ['admin/catalog/region_grid'] = 'admin/regions/grid';
$route ['admin/catalog/regions'] = 'admin/regions/index';
$route ['admin/catalog/regions/(:any)'] = 'admin/regions/index/$1';
$route ['admin/catalog/action_region'] = 'admin/regions/action';
$route ['admin/catalog/json_region'] = 'admin/regions/json';

$route ['admin/catalog/channels'] = 'admin/channels/index';
$route ['admin/catalog/channels/(:any)'] = 'admin/channels/index/$1';
$route ['admin/catalog/create_channel'] = 'admin/channels/create';
$route ['admin/catalog/edit_channel/(:any)'] = 'admin/channels/edit/$1';
$route ['admin/catalog/delete_channel/(:any)'] = 'admin/channels/delete/$1';
$route ['admin/catalog/action_channel'] = 'admin/channels/action';

$route ['admin/catalog/agencies'] = 'admin/agencies/index';
$route ['admin/catalog/agencies/(:any)'] = 'admin/agencies/index/$1';
$route ['admin/catalog/create_agency'] = 'admin/agencies/create';
$route ['admin/catalog/edit_agency/(:any)'] = 'admin/agencies/edit/$1';
$route ['admin/catalog/delete_agency/(:any)'] = 'admin/agencies/delete/$1';
$route ['admin/catalog/action_agency'] = 'admin/agencies/action';

$route ['admin/catalog/pickuppoints'] = 'admin/pickuppoints/index';
$route ['admin/catalog/pickuppoints/(:any)'] = 'admin/pickuppoints/index/$1';
$route ['admin/catalog/create_pickuppoint'] = 'admin/pickuppoints/create';
$route ['admin/catalog/edit_pickuppoint/(:any)'] = 'admin/pickuppoints/edit/$1';
$route ['admin/catalog/delete_pickuppoint/(:any)'] = 'admin/pickuppoints/delete/$1';
$route ['admin/catalog/action_pickuppoint'] = 'admin/pickuppoints/action';
$route ['admin/catalog/json_pickuppoint'] = 'admin/pickuppoints/json';

$route ['admin/catalog/attractions'] = 'admin/attractions/index';
$route ['admin/catalog/attractions/(:any)'] = 'admin/attractions/index/$1';
$route ['admin/catalog/create_attraction'] = 'admin/attractions/create';
$route ['admin/catalog/edit_attraction/(:any)'] = 'admin/attractions/edit/$1';
$route ['admin/catalog/delete_attraction/(:any)'] = 'admin/attractions/delete/$1';
$route ['admin/catalog/action_attraction'] = 'admin/attractions/action';
$route ['admin/catalog/json_attraction'] = 'admin/attractions/json';

$route ['admin/catalog/hotels'] = 'admin/hotels/index';
$route ['admin/catalog/hotels/(:any)'] = 'admin/hotels/index/$1';
$route ['admin/catalog/create_hotel'] = 'admin/hotels/create';
$route ['admin/catalog/edit_hotel/(:any)'] = 'admin/hotels/edit/$1';
$route ['admin/catalog/delete_hotel/(:any)'] = 'admin/hotels/delete/$1';
$route ['admin/catalog/action_hotel'] = 'admin/hotels/action';

$route ['admin/catalog/tours'] = 'admin/tours/index';
$route ['admin/catalog/tours/(:any)'] = 'admin/tours/index/$1';
$route ['admin/catalog/create_tour'] = 'admin/tours/create';
$route ['admin/catalog/edit_tour/(:any)'] = 'admin/tours/edit/$1';
$route ['admin/catalog/delete_tour/(:any)'] = 'admin/tours/delete/$1';
$route ['admin/catalog/action_tour'] = 'admin/tours/action';
$route ['admin/catalog/search_tours'] = 'admin/tours/search';
$route ['admin/catalog/search_tours/(:any)'] = 'admin/tours/search/$1';

$route ['admin/catalog/categories'] = 'admin/categories/index';
$route ['admin/catalog/categories/(:any)'] = 'admin/categories/index/$1';
$route ['admin/catalog/create_category'] = 'admin/categories/create';
$route ['admin/catalog/edit_category/(:any)'] = 'admin/categories/edit/$1';
$route ['admin/catalog/delete_category/(:any)'] = 'admin/categories/delete/$1';
$route ['admin/catalog/action_category'] = 'admin/categories/action';

$route ['admin/catalog/articles'] = 'admin/articles/index';
$route ['admin/catalog/articles/(:any)'] = 'admin/articles/index/$1';
$route ['admin/catalog/create_article'] = 'admin/articles/create';
$route ['admin/catalog/edit_article/(:any)'] = 'admin/articles/edit/$1';
$route ['admin/catalog/delete_article/(:any)'] = 'admin/articles/delete/$1';
$route ['admin/catalog/action_article'] = 'admin/articles/action';
$route ['admin/catalog/search_articles'] = 'admin/articles/search';
$route ['admin/catalog/search_articles/(:any)'] = 'admin/articles/search/$1';

$route ['admin/catalog/tags'] = 'admin/tags/index';
$route ['admin/catalog/tags/(:any)'] = 'admin/tags/index/$1';
$route ['admin/catalog/create_tag'] = 'admin/tags/create';
$route ['admin/catalog/edit_tag/(:any)'] = 'admin/tags/edit/$1';
$route ['admin/catalog/delete_tag/(:any)'] = 'admin/tags/delete/$1';
$route ['admin/catalog/action_tag'] = 'admin/tags/action';

$route ['admin/catalog/dailyplans'] = 'admin/dailyplans/index';
$route ['admin/catalog/dailyplans/(:any)'] = 'admin/dailyplans/index/$1';
$route ['admin/catalog/create_dailyplan/(:any)'] = 'admin/dailyplans/create/$1';
$route ['admin/catalog/edit_dailyplan/(:any)'] = 'admin/dailyplans/edit/$1';
$route ['admin/catalog/delete_dailyplan/(:any)'] = 'admin/dailyplans/delete/$1';
$route ['admin/catalog/action_dailyplan/(:any)'] = 'admin/dailyplans/action/$1';

/* End of file routes.php */
/* Location: ./application/config/routes.php */